package com.alibaba.japan.club.runtime.springmvc.pipeline;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.core.PriorityOrdered;

/**
 * 
 * @author:shaochuan.wangsc
 * @date:2009-4-15
 * 
 */
public interface JapanExceptionPipeline extends PriorityOrdered {

	/**
	 * 如果发生异常,则会执行该方法来对异常信息进行处理
	 * 
	 * @author:shaochuan.wangsc
	 * @date:2009-4-18
	 * @param throwable
	 */
	public void handleExceptionInternal(HttpServletRequest request, HttpServletResponse response, Throwable throwable)
			throws Exception;
}
